Skip to content

fix: add missing apiroute monitoring path annotation - #529

Merged
shreddedbacon merged 1 commit into
mainfrom
fix-missing-apiroute-monitoringpath
Oct 27, 2026
Merged

shreddedbacon merged 1 commit into
mainfrom
fix-missing-apiroute-monitoringpath

Conversation

@shreddedbacon

Copy link
Copy Markdown
Member

This adds missing the missing monitoringPath defaults on API routes

@shreddedbacon
shreddedbacon marked this pull request as ready for review September 18, 2026 03:46
@shreddedbacon

Copy link
Copy Markdown
Member Author

Might need adjusting if #520 is merged first

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The narrow defaulting change preserves explicit paths, matches the updated ingress expectations, and has no identified blocking issues.

No open issues 🎉

What changed in this PR

This PR fixes missing monitoring-path annotations on API-defined routes by applying the default path while preserving explicitly configured paths.

Changes:

  • Default API routes’ MonitoringPath when no value is provided.
  • Update ingress fixtures to expect monitor.stakater.com/overridePath: / for standard, Fastly, and active/standby routes.
File Description
internal/​testdata/​node/​ingress-templates/​api-defined-routes-with-lagoon-yml/​test.example.com.yaml Expect the default monitoring-path annotation.
internal/​testdata/​node/​ingress-templates/​api-defined-routes-with-lagoon-yml/​other.example.com.yaml Expect the default path with monitoring disabled.
internal/​testdata/​node/​ingress-templates/​api-defined-routes-with-lagoon-yml-fastly/​test.example.com.yaml Expect the default path for a Fastly route.
internal/​testdata/​node/​ingress-templates/​api-defined-routes-with-lagoon-yml-fastly/​other.example.com.yaml Expect the default path for a monitoring-disabled Fastly route.
internal/​testdata/​node/​ingress-templates/​active-standby-api-routes/​test.example.com.yaml Expect the default path in active/standby configuration.
internal/​testdata/​node/​ingress-templates/​active-standby-api-routes/​other.example.com.yaml Expect the default path with monitoring disabled.
internal/​testdata/​node/​ingress-templates/​active-standby-api-routes/​active.example.com.yaml Expect the default path for the migrating active route.
internal/​lagoon/​routes.go Preserve explicit monitoring paths and default empty values.

Review effort: Balanced

@shreddedbacon
shreddedbacon force-pushed the fix-missing-apiroute-monitoringpath branch from 701a4a3 to 03e9b31 Compare October 27, 2026 22:45
@shreddedbacon
shreddedbacon enabled auto-merge (squash) October 27, 2026 22:45
@shreddedbacon
shreddedbacon merged commit bc1e037 into main Oct 27, 2026
5 checks passed
@shreddedbacon
shreddedbacon deleted the fix-missing-apiroute-monitoringpath branch October 27, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants